<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<body>
<script language='javascript'>
<?php
    if ($this->msg != ''){
        $this->msg = str_replace ("'", "\'", $this->msg);
        $this->msg = str_replace ("\r", "", $this->msg);
        $this->msg = str_replace ("\n", "\\n", $this->msg);
        echo "alert('{$this->msg}');";
    }
    if ($this->url != '')
        echo "location.href='{$this->url}'";
?>
</script>
</body>
</html>
